# encoding: utf-8
"""
@author: 夏洛
@QQ: 1972386194
@file: 02-demo1.py
"""
import time

import requests,hashlib
url = 'http://127.0.0.1:5000/api'

xx = str(int(time.time()))
def get_enc(xx):
    m = hashlib.md5()
    value = xx + 'feifei'
    m.update(value.encode())
    print(m.hexdigest())
    return m.hexdigest()

cookies = {
    "per": xx,
    "__zp_stoken__":get_enc(xx),
}
res =requests.get(url,cookies=cookies)
print(res.text)
